package org.dreamwork.jasmine2.sample.data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-10-15
 * Time: 18:05:18
 */
public class Product implements Serializable {
    private int id;
    private Category category;
    private String supplier;
    private String name;
    private String unit;
    private double store;
    private double price;
    private boolean promote;
    private Date toDate; 

    public enum Category {
        Unknonw, Drink, Seafood, Meal, Cron
    }

    public Product () {
    }

    public Product (Category category, String supplier, String name, double price) {
        this.category = category;
        this.supplier = supplier;
        this.name = name;
        this.price = price;
    }

    public Category getCategory () {
        return category;
    }

    public void setCategory (Category category) {
        this.category = category;
    }

    public String getSupplier () {
        return supplier;
    }

    public void setSupplier (String supplier) {
        this.supplier = supplier;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public double getPrice () {
        return price;
    }

    public void setPrice (double price) {
        this.price = price;
    }

    public int getId () {
        return id;
    }

    public void setId (int id) {
        this.id = id;
    }

    public String getUnit () {
        return unit;
    }

    public void setUnit (String unit) {
        this.unit = unit;
    }

    public double getStore () {
        return store;
    }

    public void setStore (double store) {
        this.store = store;
    }

    public boolean isPromote () {
        return promote;
    }

    public void setPromote (boolean promote) {
        this.promote = promote;
    }

    public Date getToDate () {
        return toDate;
    }

    public void setToDate (Date toDate) {
        this.toDate = toDate;
    }
}